package com.example.mybatisplusdemo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.mybatisplusdemo.model.domain.User;
import com.example.mybatisplusdemo.model.vo.UserVO;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lxp
 * @since 2025-06-17
 */
public interface UserMapper extends BaseMapper<User> {

    //mybatis中每一个mapper都有一个sql与之对应
    //取别名
    User selectByIdmy(@Param("byId") int i);

    UserVO selectByIdWithLog(@Param("id") int i);

    Page<User> selectPageMy(@Param("page") Page<User> page, @Param("user") User user);

    Page<User> selectPageList(@Param("page") Page<User> page, @Param("user") User user);
}
